package com.neusoft.crm.mapper;

import com.neusoft.crm.entity.Emp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 员工信息表 Mapper 接口
 * </p>
 *
 * @author lplpok
 * @since 2023-06-18
 */
public interface EmpMapper extends BaseMapper<Emp> {
    @Select("SELECT * FROM emp where logid = #{param.logid} and logpwd = #{param.logpwd}")
    Emp login(@Param("param") Emp emp);


    @Select("SELECT emp.empno,emp.ename,emp.gender,emp.job,emp.tel,emp.phone FROM emp")
    List<Emp> getListdata();

}
